package com.overlord.im.client.api;

import com.overlord.im.client.netty.handler.ImClientHandler;
import com.overlord.im.commons.message.OverlordImMessage;

/**
 * @ClassName MessageApi
 * @Author wuwei
 * @Description NONE
 * @Date 2020/5/29 17:30
 **/
public class MessageApi {
    private ImClientHandler imClientHandler;

    public MessageApi(ImClientHandler imClientHandler) {
        this.imClientHandler = imClientHandler;
    }

    public void send(OverlordImMessage message) {
        imClientHandler.writeAndFlush(message);
    }
}
